<?php
/*
	插件概览
*/
global $_RQ,$_AR;
$merchid=$this->checklogin();
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
if($_RQ['op']=='edit'){
	$item=$this->plugin_setting('peisong'.$merchid);
    $return['item']=$item;
	
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'配送设置',
		'edit'=>array(
					array('type'=>'string','title'=>'配送范围（km）','name'=>'juli','help'=>'超过距离无法下单'),
					
			),
		);
	$return['htmls']=$htmls;
	if($_SESSION['os']=='mobile'){
		$return['htmls']=$this->template_url('manage/shop_index');
	}
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$item=$this->plugin_setting('peisong'.$merchid,$postdata);
	exi('设置成功');
}